import React from 'react';
import ReactDOM from 'react-dom';

// 函数组件
// import Hello from './components/demo/Hello'
// 类组件
// import HelloClass from './components/demo/HelloClass';
// 类型约束的高阶组件
// import HelloHOC from './components/demo/HelloHOC';
// hook组件
// import HelloHooks from './components/demo/HelloHooks';
import App from './components/App'
// import Root from './routers';


ReactDOM.render(
    // <HelloClass name="TypeScript" />,
    // <HelloHOC name='TypeScript' loading={true} />,
    // <HelloHooks name="TypeScript"></HelloHooks>,
    <App />,
    // <Root />,
    document.querySelectorAll('.app')[0]
);
